package com.huayue.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.huayue.annotation.LogAnno;
import com.huayue.entity.RoomStatusType;
import com.huayue.service.RoomStatusTypeService;
import com.huayue.util.PageHelper;

/**
 * 房态类型
 */
@Controller
@RequestMapping("/room_status_type")
public class RoomStatusTypeController {
    @Autowired
    RoomStatusTypeService svc;

    BaseController bc = new BaseController();

    @LogAnno(operateType = "添加-房态类型信息")
    @RequestMapping("/add")
    public ModelAndView add(RoomStatusType room_status_type) {
        return bc.add(svc, room_status_type);
    }

    @LogAnno(operateType = "修改-房态类型信息")
    @RequestMapping("/update")
    public ModelAndView update(RoomStatusType room_status_type) {
        return bc.update(svc, room_status_type);
    }

    @LogAnno(operateType = "删除-房态类型信息")
    @RequestMapping("/delete")
    public ModelAndView delete(RoomStatusType room_status_type) {
        return bc.delete(svc, room_status_type);
    }

    @RequestMapping("/findOne")
    public ModelAndView findOne(RoomStatusType room_status_type) {
        return bc.findOne(svc, room_status_type);
    }

    @RequestMapping("/findPage")
    public ModelAndView findPage(PageHelper page, RoomStatusType room_status_type) {
        return bc.findPage(svc, page, room_status_type, room_status_type);
    }
}
